﻿using com.guojin.core.io.message;
using System.Collections;
using System.Collections.Generic;
using com.guojin.core.io;
using UnityEngine;
using System;

namespace com.guojin.mj.net.message.login
{
    public class JoinAlliance : Message
    {
        public static int TYPE = 7;
        public static int ID = 107;
        /***俱乐部id*/
        private int clubid;
        /***联盟id*/
        private int allid;

        public int Clubid
        {
            get
            {
                return clubid;
            }

            set
            {
                clubid = value;
            }
        }

        public int Allid
        {
            get
            {
                return allid;
            }

            set
            {
                allid = value;
            }
        }

        public static JoinAlliance Create(int Cid,int lmid) {
            JoinAlliance ja = new JoinAlliance();
            ja.clubid = Cid;
            ja.Allid = lmid;
            return ja;
        }
        public void decode(core.io.Input _in)
        {
            
        }

        public void encode(Output _out)
        {
            _out.writeInt(clubid);
            _out.writeInt(allid);
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return clubid + "allid" + allid;
        }
    }
}
